import java.util.Scanner;


public class XbySeven {
	public static void main(String[] args) {
	
		Scanner sc = new Scanner(System.in);
		System.out.println("Enter number -2147483647 - +2147483647");
		fastMultiplyBySeven(sc.nextInt());
		sc.close();
			
	}

	private static void fastMultiplyBySeven(int number) {
		int x = number;
		int y = x;
				System.out.println((x<<3)-y);
	}
	
		
	
}
